package Test_0713;

/**
 * Created with Intellij IDEA
 * Description:
 * User: 星辰
 * Dare: 2024-07-14
 * Time: 8:29
 */
 class Dog{
    public String color;
    public int age;
    public String name;
    public void barks(){
        System.out.println(name+"会汪汪叫~");
    }
}
public class Test2 {
    public static void main(String[] args) {
        Dog dog=new Dog();
        dog.age=2;
        dog.name="小白";
        dog.color="white";
        dog.barks();
        Dog dog1=new Dog();
        dog1.age=3;
        dog1.name="小黑";
        dog1.color="black";
        dog1.barks();

    }
    public void cs(){
        System.out.println("ceshi");
    }
}
